<?php
/**
 * The Sidebar containing the primary and secondary widget areas.
 *
 * @package WordPress
 * @subpackage Twenty_Ten
 * @since Twenty Ten 1.0
 */
?>

		<div id="primary" class="widget-area" role="complementary">
<?php
   if(!is_front_page())
   {
	?>
<div id="optin">
	<div id="offer">
		<img src="wp-content/themes/twentyten/images/free_offer.png" alt="free_offer"/>
	</div>
	
	<div id="guide1">
		<p>DOWNLOAD OUR</p>
	</div>
	
	<div id="guide2">
		<p>KITCHEN GUIDE</p>
	</div>
	
	<div id="book">
		<img src="wp-content/themes/twentyten/images/free_book.png" alt="free_book"/>
	</div>

	<div id="getinfo">
		<form method="post" action="datbase.php">
			<p><input type="test" name="getname" id="namefield1" width="136px" height="22px" value="Enter Your Name" size="28" maxlength="28" />   <input type="test" name="getemail" id="namefield2" width="136px" height="22px" value="Enter Your email" size="28" maxlength="28" /></p>
			<p><span id="dbtn"><a href="index.php"><img src="wp-content/themes/twentyten/images/download_now.png"/></a></span></p>
		</form>
		
	</div>
</div> 
	
<?php
   }
?>			
			<ul class="xoxo">

<?php
	/* When we call the dynamic_sidebar() function, it'll spit out
	 * the widgets for that widget area. If it instead returns false,
	 * then the sidebar simply doesn't exist, so we'll hard-code in
	 * some default sidebar stuff just in case.
	 */
	if ( ! dynamic_sidebar( 'primary-widget-area' ) ) : ?>

			

		<?php endif; // end primary widget area ?>
			</ul>
		</div><!-- #primary .widget-area -->

<?php
	// A second sidebar for widgets, just because.
	if ( is_active_sidebar( 'secondary-widget-area' ) ) : ?>

		<div id="secondary" class="widget-area" role="complementary">
			<ul class="xoxo">
				<?php dynamic_sidebar( 'secondary-widget-area' ); ?>
			</ul>
		</div><!-- #secondary .widget-area -->

<?php endif; ?>
